const Timestamp = new Date().getTime();

module.exports = {
    publicPath: "./",
    outputDir: 'blog_admin',
    configureWebpack: {
        output: { // 输出重构  打包编译后的 文件名称  【模块名称.版本号.时间戳】
            filename: `static/js/[name].${Timestamp}.js`,
            chunkFilename: `static/js/[name].${Timestamp}.js`
        },
    },
    devServer: {
        // https: true,
        proxy: {
            '/': {
                target: 'http://localhost:8080',
                ws: true,
                changeOrigin: true
            },
        }
    }
};